
#ifndef _UTIL_H_
#define _UTIL_H_

#include <sys/types.h>

struct st_debugger_disabler_ctx {
    int dumpable;
    int fdp[2];
    int fdc[2];
    pid_t pid;
};

typedef struct st_debugger_disabler_ctx debugger_disabler_ctx;

int debugger_disabler_init(debugger_disabler_ctx *); 
void debugger_disabler_free(debugger_disabler_ctx *);

int dump(const char *, const void *, size_t);
void trim(char *);

void check_parent_pid();

void memset4(void* desc, int v, int len);

#endif

